package com.lys.emsystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lys.emsystem.entity.School;
import com.lys.emsystem.vo.SchoolVo;

import java.util.List;


public interface SchoolService {
//    查询学校信息，不包含下属学院
    List<School> selectList();

    //    通过学校名或者学校编号查询
    IPage<School> selectByNameOrNo(Page<School> page, SchoolVo schoolVo);

//  添加
    int addSchool(School school);

//   修改
    int updateSchool(School school);

//   删除
    int deleteSchool(int schoolId);

//    批量删除
    int deleteSchools(int[] ids);

}
